package com.shire.shire_interface.service.phrase;

import com.shire.shire_interface.dao.phrase.WxPhraseDao;
import com.shire.shire_interface.model.phrase.WxPhrase;
import com.shire.shire_interface.model.phrase.WxPhraseExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 作者:  sll
 * 时间:  2019/8/26 14:59
 */
@Service
public class WxPhraseService {

    @Resource
    private WxPhraseDao wxPhraseDao;

    public List<WxPhrase> selectByExample(WxPhraseExample example) {

        return wxPhraseDao.selectByExample(example);
    }

    public int insert(WxPhrase wxPhrase) {
        return wxPhraseDao.insertSelective(wxPhrase);
    }

    public int delByPrimaryKey(Integer id) {

        return wxPhraseDao.deleteByPrimaryKey(id);
    }
}
